
Vue.directive('show-img', {
	update: function (el, binding, vnode) {
		var $el = $(el);
		var src = $el.attr("src");
		var json = {
			"title": "",
			"id": "automobile_photo",
			"start": 0,
			"data": [
				{
					"alt": "",
					"pid": Math.random(),
					"src": src,
					"thumb": src
				}
			]
		};

		$el.bind("click", function (e) {
			layer.photos({
				photos: json
				,anim: 0
			});
		});
	}
});